Skip to content

spirv-val: Add static RayQuery/RayTracing value check#5567

Open
spencer-lunarg wants to merge 1 commit intoKhronosGroup:mainfrom
spencer-lunarg:spencer-lunarg-ray-query-2
Open

spirv-val: Add static RayQuery/RayTracing value check#5567
spencer-lunarg wants to merge 1 commit intoKhronosGroup:mainfrom
spencer-lunarg:spencer-lunarg-ray-query-2

Conversation

@spencer-lunarg
Copy link
Copy Markdown
Contributor

There are various runtime checks for OpRayQueryInitializeKHR and OpTraceRayKHR (ex VUID-RuntimeSpirv-OpRayQueryInitializeKHR-06349 and VUID-RuntimeSpirv-OpRayQueryInitializeKHR-06889) which I am adding to the Validation Layers.

I realized there is no reason not to just do the check here in spirv-val if the values are constant. (the EvalInt32IfConst is almost doing the same work the original GetOperandTypeIdwas)

I already had an issue where someone mixed the tMin and tMax values in their GLSL and there is no warning (granted it could warn in glslang, but probably other languages might not niether)

@spencer-lunarg spencer-lunarg force-pushed the spencer-lunarg-ray-query-2 branch from 44f49d9 to 7846043 Compare February 14, 2024 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant